import request from '@/utils/request'

// 查询去哪选项列表
export function listGooption(query) {
  return request({
    url: '/play/gooption/list',
    method: 'get',
    params: query
  })
}

// 查询去哪选项详细
export function getGooption(id) {
  return request({
    url: '/play/gooption/' + id,
    method: 'get'
  })
}

// 新增去哪选项
export function addGooption(data) {
  return request({
    url: '/play/gooption',
    method: 'post',
    data: data
  })
}

// 修改去哪选项
export function updateGooption(data) {
  return request({
    url: '/play/gooption',
    method: 'put',
    data: data
  })
}

// 删除去哪选项
export function delGooption(id) {
  return request({
    url: '/play/gooption/' + id,
    method: 'delete'
  })
}
